package cn.uniqueinfo.dp.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-29 14:47:12
 * @description:部门
 */
@Data
public class DeptVO extends BaseVO {
    /** 父id */
    private Long ipid;
    /** 上下级路径 */
    private String path;
    /** 部门名称 */
    private String deptName;
    /** 显示顺序 */
    private Integer showOrder;
    /** 状态0=正常1=禁用 */
    private Integer status;
    /** 是否删除标记0=正常1=已删除 */
    private Integer isDelete;
    /** 部门备注 */
    private String deptComment;

    private Long _parentId;
    private String text;

    public String getText() {
        return this.deptName;
    }

    @JSONField(name = "_parentId")
    public Long get_parentId() {
        if (this.ipid == 0) {
            return null;
        } else {
            return this.ipid;
        }
    }
}
